package com.ciaojian.client.service;

import com.ciaojian.core.mapper.SchedulingMapper;
import com.ciaojian.core.model.Scheduling;
import com.ciaojian.core.service.SchedulingService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author oxiny
 */
@Service
public class SchedulingServiceImpl extends SchedulingService<SchedulingMapper, Scheduling> {
    /**
     * 查询发型师未来三天的排班
     *
     * @param workerId 发型师ID
     * @return 返回日期、上班时间和结束时间等
     */
    public List<Map<String, Object>> findFutureSchedule(Integer workerId){
        return this.baseMapper.findFutureSchedule(workerId);
    }
}
